home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / program / amos / amoslist.lzh / AMOSLIST / 000096_amos-request@svcs1.digex.net_Tue Sep 5 04:46:38 1995.msg < prev    next >
Internet Message Format  |  1995-10-02  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id EAA03141;  for <mcox@access.digex.net> ; Tue, 5 Sep 1995 04:46:37 -0400
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.6.12/8.6.12) id DAA10511 for amos-out; Tue, 5 Sep 1995 03:05:53 -0400
  3. Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2]) by svcs1.digex.net (8.6.12/8.6.12) with ESMTP id DAA10508 for <amos-list@svcs1.digex.net>; Tue, 5 Sep 1995 03:05:52 -0400
  4. Received: from ds1.acs.ucalgary.ca (root@ds1.acs.ucalgary.ca [136.159.34.101]) by mail1.access.digex.net (8.6.12/8.6.12) with SMTP id DAA29310;  for <amos-list@access.digex.net> ; Tue, 5 Sep 1995 03:05:51 -0400
  5. Received: by acs3.acs.ucalgary.ca (AIX 4.1/UCB 5.64/4.03)
  6.           id AA13612; Tue, 5 Sep 1995 01:08:01 -0600
  7. Message-Id: <9509050708.AA13612@acs3.acs.ucalgary.ca>
  8. Subject: Wheel of Fortune
  9. To: amos-list@access.digex.net
  10. Date: Tue, 5 Sep 95 1:08:01 MDT
  11. From: "Robert Andrew Currie" <racurrie@acs.ucalgary.ca>
  12. X-Mailer: ELM [version 2.3 PL11B]
  13. Mime-Version: 1.0
  14. Content-Type: text/plain; charset=US-ASCII
  15. Content-Transfer-Encoding: 7bit
  16. Content-Length: 1487      
  17. Status: RO
  18. X-Status: 
  19.  
  20. To the person with the accelleration problem:
  21.  
  22.     It seems that the solution is related to a simple physics
  23. equation(or dynamics for those engineers). What you need is the
  24. distance equation for an object experiencing deceleration.
  25.  
  26.     d=d`+v`*t+0.5*a`*t^2
  27.  
  28. Where d` is your initial position-- the position of release of
  29. the wheel. v` is the initial velocity-- the pixel velocity that
  30. you calculated. a' is some deceleration value which reflects the
  31. friction of the ticker on the side of the wheel and the effects
  32. of gravity(and of course air friction). t is the time in
  33. second(or 50'ths of a second if that's what your velocity is
  34. in). So to determine what the wheel looks at any one time, all
  35. you have to know is which number was grabbed. Calulate the
  36. distance that that number has traveled in the current
  37. time. mod that value with the circumferance of the wheel to
  38. obtain your offset and then draw the wheel accordingly. You
  39. should do this in a repeating loop that exits as soon as the
  40. velocity drops below a certain amount. Velocity is calulated as
  41. follows:
  42.  
  43.     v=v`+a`*t 
  44.  
  45. which uses the same values as above. You will have to figure out
  46. the deceleration value for yourself. Just choose a value that
  47. seems to work correctly--there are too many variables for me to
  48. make an accurate guess.
  49.  
  50. The reason this works is becuase you are dealing with the
  51. tangential acceleration of a rotating object. The plot of your
  52. curve probably closely resembles the deceleration curve.
  53.  
  54.  
  55.             Robert Currie
  56.  
  57.  
  58.